/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.x3.purchasing.account;

import java.util.List;

/**
 *
 * @author kris
 */
public interface AccountDAO {

    public void insert(Account account) throws Exception;

    public void update(Account account) throws Exception;

    public void delete(int id) throws Exception;

    public Account get(int id) throws Exception;

    public Account getMaxId() throws Exception;

    public List<Account> gets() throws Exception;

    public Account getByUsername(String username) throws Exception;

    public Account login(String userName,String password)throws Exception;
}
